package com.mh.web.controller.system;

import com.mh.common.core.controller.BaseController;
import com.mh.common.core.domain.BaseResp;
import com.mh.system.service.SysAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/system/area")
public class SysAreaController extends BaseController {

    @Autowired
    private SysAreaService sas;

    @RequestMapping("/tree")
    public BaseResp getAreaService(){
        return BaseResp.success(sas.findAreaDTO());
    }
}

